import _ from "lodash";
import { EnumClassGroup, EnumProperty, IContainer } from "xcore/cmpnt"; 
var SearchForm: IContainer = {
  cmpnt: "x-search-form",
  category: "containers",
  valueKey: "form",
  viewable: false,
  props: {
    showLabel: false,
    style: { "color": "", "background-color": "" },
    class: [],
    searchFields: [],
    options: [],
    titleGroup: {
      showTitle: true,
      showSplitLine: false,
      useTableInfo: true,
      showMenu: false,
      innerText: "页面标题",
      desc: "功能说明信息",
      class: ["p-1","py-3"],
      titleClass: ["fs-5"],
      descClass: ["text-secondary","fs-8"],
      menuClass: [""],
    },
    groupGroup: {
      show: true,
      showAll:true,
      allLabel: "全部",

      fieldId: "",
      dataDict: "",
      class: [],
    },
    searchBtnGroup: {
      show: true,
      innerText: "搜索",
      type: "primary",
      link: false,
      plain: false,
      text: false,
      icon: "Search",
      children:[],
    },
    DbTable: { id: "" },
    bind: {
      properties: [EnumProperty.Table, EnumProperty.AddWidget, EnumProperty.Removed],
      specialClassGroups: {
        titleClass: [EnumClassGroup.TextColor, EnumClassGroup.FontSize],
        descClass: [EnumClassGroup.TextColor, EnumClassGroup.FontSize],
        menuClass: [EnumClassGroup.TextColor, EnumClassGroup.FontSize],
        class: [EnumClassGroup.Padding, EnumClassGroup.Background],
      },
      classGroups: [
        EnumClassGroup.Padding,
        EnumClassGroup.TextColor,
        EnumClassGroup.FontSize,
        EnumClassGroup.Background
      ],
    },
  },
  slot: {},
  events: {},
  children: [],
  ctl: {
    icon: "iconfont te-i-form",
    name: "search-form",
    group: "form",
    text: "搜索表单",
  },
};
export { SearchForm };
